// components/my-button/my-button.js
Component({
  properties: {
    text: {
      type: String,
      value: "默认按钮"
    }
  },
  methods: {
    handleTap() {
      this.triggerEvent('onTap', { msg: '按钮被点击了！' })
    }
  }
})